package com.example.g5project.customer.model.result;

import lombok.AllArgsConstructor;

@AllArgsConstructor
public class Result {


    public static final Result SUCCESS =  new Result(true, "SUCCESS");

    private final Boolean isRight;

    private final String message;

    public Boolean isRight() {
        return this.isRight;
    }

    public String getMessage() {
        return this.message;
    }

    public static Result error(String message) {
        return new Result(false, message);
    }
}
